import { lazy } from "react";
import NotFound from "../pages/NotFound";
const Layout = lazy(() => import('../pages/Layout'))
const Server = lazy(() => import('../pages/Server'))
const Admin = lazy(() => import('../pages/Admin'))
const Order = lazy(() => import('../pages/Order'))
const Home = lazy(() => import('../pages/Home'))
export const RouterChildrenList = [
	{
		path: '/',
		element: <Home />,
		title: '首页'
	},
	{
		path: '/server',
		element: <Server />,
		title: '客服管理'
	},
	{
		path: '/order',
		element: <Order />,
		title: '订单管理'
	},
	{
		path: '/admin',
		element: <Admin />,
		title: '会员管理'
	}
]
export const RouterList = [
	{
		path: '/',
		element: <Layout />,
		children: RouterChildrenList
	},
	{
		path: '*',
		element: <NotFound />
	}
]